package com.team5101.controller;

import com.team5101.entity.Show;
import com.team5101.service.IShowService;
import com.team5101.utils.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("api/show")
public class ShowController {

    @Autowired
    private IShowService showService;


    @RequestMapping("data/{nfId}")
    public R getShowBynfId(@PathVariable  Integer nfId){
         return R.ok(showService.getShowBynfId(nfId));
    }
}
